package pers.csw.lookBook.service;

import com.baomidou.mybatisplus.extension.service.IService;
import pers.csw.lookBook.entity.GiveLike;
import pers.csw.lookBook.vo.GiveLikeVo;

import java.util.List;

public interface GiveLikeService extends IService<GiveLike> {
    int saveGiveLike(GiveLike giveLike);
    boolean saveList(List<GiveLike> giveLikes);
    GiveLike getGiveLike(Integer userid,Integer pId);
    void transLikedFromRedis2DB();
    int getGiveLikeListNum(Integer pId);
    Boolean isUserGiveLike(Integer userId,Integer pId);
    List<GiveLikeVo> getUserLike(Integer userId);
}
